#include<stdio.h>
#include<stdlib.h>
#define MAXSIZE 20
#define OK 1
#define ERROR 0
typedef int ElemType;
typedef int Status;
typedef struct
{
	ElemType data[MAXSIZE];
	int length;
}Sqlist;
 void chushihua(Sqlist L, int i)
{   
	if (i<1 || i>MAXSIZE)
		return ERROR;

	int k = 0;
	i = L.length;
	for (k; k < i; k++) {
		L.data[k] = rand();
	}
	for (k; k < i; k++) {
		printf("%d", L.data[k]);
	}
}


Status GetElem(Sqlist L, int i, ElemType* e)
{
	if (L.length == 0 || i<1 || i>L.length)
		return ERROR;
	*e = L.data[i - 1];
	return OK;
}

int main()
{
	Sqlist L1;
	chushihua(L1, 5);

	return 0;
}